<?php

namespace app\api\model;

use think\Model;

class WorkModel extends Model
{
    protected $name = 'work';

    public function user()
    {
        return $this->belongsTo(UserModel::class, 'user_id', 'id');
    }
}